//Make up a factrial using for circulation.
import java.util.Scanner;
public class factorial1
{
  public static void main(String []args)
  {
  int m = 1;
  int result = 1;
  int n;
  Scanner scan = new Scanner(System.in);

  System.out.println("Please enter a n :");
  n=scan.nextInt();

  System.out.println("n =" +n);
  for(m=1;m<=n;n--)
    result *= n;

  System.out.println("The result of factorial is :" +result);
  }
}  
